package com.kly.sc.api.application.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class ThreadPoolUtils {

    public static ExecutorService newFixedThreadPool() {
        return new ThreadPoolExecutor(2, 4,60L, TimeUnit.SECONDS, new LinkedBlockingQueue<>(100));
    }
}
